}
printposn(wpt->latitude,1);
printposn(wpt->longitude,0);
-
- tmpdesc = str_utf8_to_ascii( wpt->description);
- printf("%s/%s",
- global_opts.synthesize_shortnames ?
+
+ if ( wpt->description ) {
+ tmpdesc = str_utf8_to_ascii( wpt->description);
+ printf("%s/%s",
+ global_opts.synthesize_shortnames ?
mkshort(mkshort_handle, tmpdesc) :
wpt->shortname,
tmpdesc);
- if ( tmpdesc )
- xfree(tmpdesc);
+ if ( tmpdesc )
+ xfree(tmpdesc);
+ }
if (wpt->altitude != unknown_alt)
printf(" %f", wpt->altitude);